import {req_get, req_get_auth, req_post_auth} from "./baseApi.js";
import {HOST} from './hosts'

// 新建评论
export const createRating = (data) => {
    const url = `${HOST}/rating`;
    return req_post_auth("post", url, data);
}

// 当前用户的历史评分
export const listRating = (data) => {
    const url = `${HOST}/rating/list`;
    return req_get_auth("get", url, data);
}